﻿@model blacksoft.Models.Movimiento
@using blacksoft.Helpers

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_LayoutCompras.cshtml";
}

@if (TempData["MODCOMP_merma_create_failure_pos"] != null)
{
    <div class="error grid_12">
        <h3>Error: @TempData["MODCOMP_merma_create_failure_pos"]</h3>
        <a class="hide_btn" href="#"></a>
    </div>
}

@if (TempData["MODCOMP_merma_create_failure_neg"] != null)
{
    <div class="error grid_12">
        <h3>Error: @TempData["MODCOMP_merma_create_failure_neg"]</h3>
        <a class="hide_btn" href="#"></a>
    </div>
}

<div class="block big">
    <div class="titlebar">
        <h3>Nueva Merma</h3>
    </div>
    <div class="block_cont">

        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()

            <div class="form">


                @Html.ValidationSummary(true)
              

                <div class="form-row">
                    @Html.LabelForRequired(model => model.IDProgramacionViaje)
                    @Html.DropDownList("IDProgramacionViaje", null, "Elegir", new {@class="select" })
                    @Html.ValidationMessageFor(model => model.IDProgramacionViaje)

                </div>

                <div class="form-row">
                    @Html.LabelForRequired(model => model.Cantidad)
                    @Html.EditorFor(model => model.Cantidad)
                    @Html.ValidationMessageFor(model => model.Cantidad)

                </div>

                <div class="form-row">
                    @Html.LabelForRequired(model => model.IdAlmacen, "Producto")
                    @Html.DropDownList("IdAlmacen", null, "Elegir", new { @class = "select" })
                    @Html.ValidationMessageFor(model => model.IdAlmacen)

                </div>

                <div class="form-row">
                    @Html.LabelFor(model => model.Fecha)
                    @Html.EditorFor(model => model.Fecha)
                    @Html.ValidationMessageFor(model => model.Fecha)

                </div>


                @*<div class="form-group">
                        @Html.LabelFor(model => model.Tipo, new { @class = "control-label col-md-2" })
                        @Html.EditorFor(model => model.Tipo)
                            @Html.ValidationMessageFor(model => model.Tipo)

                    </div>*@
                <br />
                <div class="form-group">

                    <input type="submit" value="Registrar" class="btn btn-default" />
                    <br />
                    @Html.ActionLink("Regresar al listado", "Index")

                </div>
            </div>

        }

    </div>

</div>
